import QtQuick 2.2
import QtQuick.Window 2.1

Window {
    visible: true
    width: 360
    height: 360

    Rectangle {
        width: 100;
        height: 100;

        //**********以下是Rectangle自带的（不是继承过来的）属性

        color: "skyblue";
        radius: 2.0;
        border {
            color: "green";
            width: 2.0;
        }
        //如果gradient和color同时出现，gradient优先
        gradient: Gradient{
            GradientStop {
                position: 0.0;
                color: "lightgreen";
            }
            GradientStop {
                position: 0.5;
                color: "skyblue";
            }
            GradientStop {
                position: 1.0;
                color: "yellow";
            }
        }
    }
}

